﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;

namespace source
{
    public partial class PedagogKontrola : UserControl
    {
        public PedagogKontrola()
        {
            InitializeComponent();
        }
        public PedagogKontrola(Pedagog pedagog)
        {
            InitializeComponent();

            System.Reflection.Assembly myAssembly = System.Reflection.Assembly.GetExecutingAssembly();
            Stream myStream = myAssembly.GetManifestResourceStream("source.33.jpg");
             
            pictureBox1.BackgroundImage = new Bitmap(myStream);
            pictureBox1.BackgroundImageLayout = ImageLayout.Stretch;
            label2.Text = pedagog.Ime;
            label4.Text = pedagog.Prezime;
            label6.Text = pedagog.DatumRodjenja.ToShortDateString();
            label8.Text = pedagog.Adresa;
            label10.Text = pedagog.Telefon;
            label12.Text = pedagog.Email;
            label14.Text = pedagog.Drzavljanstvo;
            //label16.Text = pedagog.pred;
            label18.Text = pedagog.PocetakSluzbe.ToShortDateString();
            //label20.Text = pedagog.;
            //label22.Text = pedagog;
            //label24.Text = pedagog;
            richTextBox1.Text = pedagog.CV;
        }
    }
}
